package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_share_float")
public class FShareFloat {
    @Id
    private Long tid;

    /**
     * TS代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 公告日期
     */
    @Column(name = "ann_date")
    private String annDate;

    /**
     * 解禁日期
     */
    @Column(name = "float_date")
    private String floatDate;

    /**
     * 流通股份
     */
    @Column(name = "float_share")
    private Float floatShare;

    /**
     * 流通股份占总股本比率
     */
    @Column(name = "float_ratio")
    private Float floatRatio;

    /**
     * 股东名称
     */
    @Column(name = "holder_name")
    private String holderName;

    /**
     * 股份类型
     */
    @Column(name = "share_type")
    private String shareType;

    public FShareFloat(Long tid, String tsCode, String annDate, String floatDate, Float floatShare, Float floatRatio, String holderName, String shareType) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.annDate = annDate;
        this.floatDate = floatDate;
        this.floatShare = floatShare;
        this.floatRatio = floatRatio;
        this.holderName = holderName;
        this.shareType = shareType;
    }

    public FShareFloat() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取TS代码
     *
     * @return ts_code - TS代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置TS代码
     *
     * @param tsCode TS代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取公告日期
     *
     * @return ann_date - 公告日期
     */
    public String getAnnDate() {
        return annDate;
    }

    /**
     * 设置公告日期
     *
     * @param annDate 公告日期
     */
    public void setAnnDate(String annDate) {
        this.annDate = annDate;
    }

    /**
     * 获取解禁日期
     *
     * @return float_date - 解禁日期
     */
    public String getFloatDate() {
        return floatDate;
    }

    /**
     * 设置解禁日期
     *
     * @param floatDate 解禁日期
     */
    public void setFloatDate(String floatDate) {
        this.floatDate = floatDate;
    }

    /**
     * 获取流通股份
     *
     * @return float_share - 流通股份
     */
    public Float getFloatShare() {
        return floatShare;
    }

    /**
     * 设置流通股份
     *
     * @param floatShare 流通股份
     */
    public void setFloatShare(Float floatShare) {
        this.floatShare = floatShare;
    }

    /**
     * 获取流通股份占总股本比率
     *
     * @return float_ratio - 流通股份占总股本比率
     */
    public Float getFloatRatio() {
        return floatRatio;
    }

    /**
     * 设置流通股份占总股本比率
     *
     * @param floatRatio 流通股份占总股本比率
     */
    public void setFloatRatio(Float floatRatio) {
        this.floatRatio = floatRatio;
    }

    /**
     * 获取股东名称
     *
     * @return holder_name - 股东名称
     */
    public String getHolderName() {
        return holderName;
    }

    /**
     * 设置股东名称
     *
     * @param holderName 股东名称
     */
    public void setHolderName(String holderName) {
        this.holderName = holderName;
    }

    /**
     * 获取股份类型
     *
     * @return share_type - 股份类型
     */
    public String getShareType() {
        return shareType;
    }

    /**
     * 设置股份类型
     *
     * @param shareType 股份类型
     */
    public void setShareType(String shareType) {
        this.shareType = shareType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", annDate=").append(annDate);
        sb.append(", floatDate=").append(floatDate);
        sb.append(", floatShare=").append(floatShare);
        sb.append(", floatRatio=").append(floatRatio);
        sb.append(", holderName=").append(holderName);
        sb.append(", shareType=").append(shareType);
        sb.append("]");
        return sb.toString();
    }
}